if(MSVC)
  set(SDL2_INCLUDE_DIRS "${CMAKE_CURRENT_LIST_DIR}/include")
  if (${CMAKE_SIZEOF_VOID_P} MATCHES 8)
    set(SDL2_LIBRARIES "${CMAKE_CURRENT_LIST_DIR}/lib/x64/SDL2.lib;${CMAKE_CURRENT_LIST_DIR}/lib/x64/SDL2main.lib")
  else ()
    set(SDL2_LIBRARIES "${CMAKE_CURRENT_LIST_DIR}/lib/x86/SDL2.lib;${CMAKE_CURRENT_LIST_DIR}/lib/x86/SDL2main.lib")
  endif ()
elseif(MINGW)
  if (${CMAKE_SIZEOF_VOID_P} MATCHES 8)
    set(SDL2_INCLUDE_DIRS "${CMAKE_CURRENT_LIST_DIR}/x86_64-w64-mingw32/include/SDL2")
    set(SDL2_LIBRARIES "${CMAKE_CURRENT_LIST_DIR}/x86_64-w64-mingw32/lib/libSDL2.dll.a;${CMAKE_CURRENT_LIST_DIR}/x86_64-w64-mingw32/lib/libSDL2main.a")
  else ()
    set(SDL2_INCLUDE_DIRS "${CMAKE_CURRENT_LIST_DIR}/i686-w64-mingw32/include/SDL2")
    set(SDL2_LIBRARIES "${CMAKE_CURRENT_LIST_DIR}/i686-w64-mingw32/lib/libSDL2.dll.a;${CMAKE_CURRENT_LIST_DIR}/i686-w64-mingw32/lib/libSDL2main.a")
  endif () 
endif()

string(STRIP "${SDL2_LIBRARIES}" SDL2_LIBRARIES)